/*
 *
 * Copyright (c) 2008, All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Portions of the code may be copied from Google Collections
 * or Apache Commons projects.
 */

package com.coury.dasle.parser;

import java.util.List;

import com.google.common.collect.Lists;

public class ColoqueUsuario implements Parser {
	
	enum Where {
		Pool;
	}

	private final List<String> usuarios = Lists.newArrayList();
	private Where where;
	
	public ColoqueUsuario(String primeiro) {
		usuarios.add(primeiro);
	}
	
	public void e(String usuario) {
		usuarios.add(usuario);
	}
	
	public void noPool() {
		where = Where.Pool;
	}
	
	@Override
	public void execute() {
		System.out.println(
				String.format("Colocar usuarios %s no %s", usuarios, where));
	}

}
